# Copyright 2008 Fritz Thomas <fritztho@gmail.com> WebDevAppliance.com
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Vhost Administration Files for the WebDevAppliance."
HOMEPAGE="http://webdevappliance.com"
SRC_URI="http://webdevappliance.com/files/${PF}.tar.bz2"

LICENSE="GPLv3"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="wda/wda-base"
RDEPEND="${RDEPEND}"

RESTRICT="mirror"


src_install() {
	# Where to save doexe files?
	exeinto /usr/bin
	# Relative Path to the source files. These files will be copied to the
	# exeinto dir.
	doexe files/usr/bin/*

	# Misc. File install Location
	insinto /etc/webdevappliance
	doins files/etc/webdevappliance/*

	insinto /usr/lib/webdevappliance
	doins files/usr/lib/webdevappliance/*

	dodir /usr/lib/webdevappliance/skel
	insinto /usr/lib/webdevappliance/skel
	doins files/usr/lib/webdevappliance/skel/*

	dodir /usr/lib/webdevappliance/skel/default
	dodir /usr/lib/webdevappliance/skel/default/bin
	dodir /usr/lib/webdevappliance/skel/default/log
	dodir /usr/lib/webdevappliance/skel/default/www
	dodir /usr/lib/webdevappliance/skel/default/www/public
	dodir "/usr/lib/webdevappliance/skel/default/.cfg"
	dodir "/usr/lib/webdevappliance/skel/default/.cfg/php"

	insinto /usr/lib/webdevappliance/skel/default/bin
	doins files/usr/lib/webdevappliance/skel/default/bin/*

	insinto /usr/lib/webdevappliance/skel/default/www
	doins files/usr/lib/webdevappliance/skel/default/www/*

	insinto /usr/lib/webdevappliance/skel/default/www/public
	doins files/usr/lib/webdevappliance/skel/default/www/public/*

	insinto /usr/lib/webdevappliance/skel/default/.cfg
	doins files/usr/lib/webdevappliance/skel/default/.cfg/*

	dodir /etc/skel/vhosts
}

src_test() {
	true
}

src_compile() {
	true
}
